package org.jeecg.modules.demo.peihebumenbiao.service;

import org.jeecg.modules.demo.peihebumenbiao.service.impl.PeihebumenbiaoServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class InitDate{
    @Autowired
    private PeihebumenbiaoServiceImpl peihebumenbiaoService;
    @Scheduled(cron = "0 59 17 * * ?")
    public void initData(){
        System.out.println("初始化数据开始执行");
        peihebumenbiaoService.initData();
        System.out.println("初始化数据结束执行");
    }
}
